JA = java
JC = javac
JF = jflex
JD = javadoc
JAVACUP = java-cup-11a.jar

.PHONY: run
.PHONY: doc
.PHONY: sympar

vpath = src bin

build:
	$(JC) -d ./bin ./src/*.java ./src/exceptions/*.java;
	$(JA) -classpath ./bin:./ OberonParser ./src/apple.obr;
	echo "finish building"

doc:
	$(JD) -private -author -version -d ./doc -classpath ./bin:./:../../util/lib/flowchart.jar ./src/*.java

clean: 
	rm -rf ./bin/*
	rm -rf ./doc/*
	
